package vn.vietel.pms.entity;

import java.io.Serializable;

import static org.jboss.seam.ScopeType.EVENT;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.validator.NotNull;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;

@Entity
@Name("vteam")
@Scope(EVENT)
@Table(name = "VTeam")
public class VTeam implements Serializable {

	private static final long serialVersionUID = -8280511739157182313L;
	private Long id;
	private String teamName;
	private String teamAddress;
	private String teamTelephone;
	private String teamEmail;
	private String teamDist;
	private Long numberOfResources;

	public VTeam() {
		super();
	}

	public VTeam(String teamName, String teamAddress, String teamTelephone,
			String teamEmail, String teamDist, Long numberOfResources) {
		super();
		this.teamName = teamName;
		this.teamAddress = teamAddress;
		this.teamTelephone = teamTelephone;
		this.teamEmail = teamEmail;
		this.teamDist = teamDist;
		this.numberOfResources = numberOfResources;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "teamId")
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@NotNull
	public String getTeamName() {
		return teamName;
	}

	public void setTeamName(String teamName) {
		this.teamName = teamName;
	}

	public String getTeamAddress() {
		return teamAddress;
	}

	public void setTeamAddress(String teamAddress) {
		this.teamAddress = teamAddress;
	}

	public String getTeamTelephone() {
		return teamTelephone;
	}

	public void setTeamTelephone(String teamTelephone) {
		this.teamTelephone = teamTelephone;
	}

	public String getTeamEmail() {
		return teamEmail;
	}

	public void setTeamEmail(String teamEmail) {
		this.teamEmail = teamEmail;
	}

	public String getTeamDist() {
		return teamDist;
	}

	public void setTeamDist(String teamDist) {
		this.teamDist = teamDist;
	}

	public Long getNumberOfResources() {
		return numberOfResources;
	}

	public void setNumberOfResources(Long numberOfResources) {
		this.numberOfResources = numberOfResources;
	}

}
